#!/bin/bash

# 获取当前分支名称
current_branch=$(git rev-parse --abbrev-ref HEAD)

# 根据不同的分支来运行不同的构建命令
if [ "$CF_PAGES_BRANCH" == "main" ]; then
  npm run build:prod
elif [ "$CF_PAGES_BRANCH" == "release" ]; then
  npm run build:pre
else
  npm run build:pre
fi
